import request from '@/utils/request'

// 查询品种信息列表
export function listVar(query) {
  return request({
    url: '/pet/var/list',
    method: 'get',
    params: query
  })
}
// 获取选购分类列表信息
export function getProdAllInfo(data) {
  return request({
    url: '/pet/prodInfo/getProdAllInfo',
    method: 'post',
    data: data
  })
}
//获取选购分类
export function getListMapClass(data) {
  return request({
    url: '/pet/class/getListMapClass',
    method: 'post',
    data: data
  })
}
//商品分类筛选
export function getProdInfoByCate(data) {
  return request({
    url: '/pet/prodInfo/getProdInfoByCate',
    method: 'post',
    data: data
  })
}
//提交
export function addOrder(data) {
  return request({
    url: '/pet/cashier/addOrder',
    method: 'post',
    data: data
  })
}
//获取数据列表
export function getList(data) {
  return request({
    url: '/pet/cashier/list',
    method: 'get',
    params: data
  })
}

//获取数据列表
export function changGive(id,data) {
  return request({
    url: '/pet/cashier/changGive/'+id,
    method: 'get',
    params: data
  })
}
//修改表格数据
export function updateUser(data) {
  return request({
    url: '/pet/cashier/updateUser',
    method: 'post',
    data: data
  })
}
// 结账
export function setOrderAll(data) {
  return request({
    url: '/pet/order/setOrderAll',
    method: 'post',
    data: data
  })
}
// 收银员
export function getMap(data) {
  return request({
    url: '/pet/ebstaff/getMap',
    method: 'post',
    data: data
  })
}
// 删除
export function delInfo(id,data) {
  return request({
    url: '/pet/cashier/'+id,
    method: 'delete',
    data: data
  })
}